<?php
	$main = new main(); // mir blutet bei dieser Zeile das Herz
	class main {
		
		public function main(){
			$dirhandle = opendir(".");
			while(($cfile = readdir($dirhandle)) != false){
				if(strpos($cfile, ".php")!== false){
					include_once $cfile;
				}
			}
			if(isset($location)){
				patterns::html_header($location);
			} else {
				patterns::html_header("Willkommen");
			}
			
			$config = XMLConfig::xml_get_tree_as_array("./config.xml");
			$con = new con($config["HOST"], $config["PORT"], $config["USER"], $config["PASS"], $config["DBNAME"]);
		}
	}
?>